<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>联系我 - 微信</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .container {
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            text-align: center;
            max-width: 400px;
            width: 100%;
        }
        
        .wechat-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: #07C160;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            color: white;
        }
        
        h1 {
            color: #333;
            font-size: 28px;
            margin-bottom: 10px;
        }
        
        .subtitle {
            color: #666;
            font-size: 16px;
            margin-bottom: 30px;
        }
        
        .wechat-id-box {
            background: #f5f5f5;
            border: 2px dashed #ddd;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            position: relative;
        }
        
        .wechat-id {
            font-size: 24px;
            font-weight: bold;
            color: #333;
            letter-spacing: 1px;
            user-select: all;
        }
        
        .copy-btn {
            background: #07C160;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 20px;
        }
        
        .copy-btn:hover {
            background: #06a652;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(7, 193, 96, 0.3);
        }
        
        .copy-btn:active {
            transform: translateY(0);
        }
        
        .copied {
            background: #4CAF50;
        }
        
        .tip {
            color: #999;
            font-size: 14px;
            margin-top: 20px;
        }
        
        @media (max-width: 480px) {
            .container {
                padding: 30px 20px;
            }
            
            h1 {
                font-size: 24px;
            }
            
            .wechat-id {
                font-size: 20px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="wechat-icon">
            <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" width="50" height="50">
                <path d="M8.5 12.5C9.32843 12.5 10 11.8284 10 11C10 10.1716 9.32843 9.5 8.5 9.5C7.67157 9.5 7 10.1716 7 11C7 11.8284 7.67157 12.5 8.5 12.5Z" fill="white"/>
                <path d="M15.5 12.5C16.3284 12.5 17 11.8284 17 11C17 10.1716 16.3284 9.5 15.5 9.5C14.6716 9.5 14 10.1716 14 11C14 11.8284 14.6716 12.5 15.5 12.5Z" fill="white"/>
                <path d="M12 2C6.48 2 2 6.48 2 12C2 14.19 2.64 16.22 3.75 17.92L2.5 21.5L6.08 20.25C7.78 21.36 9.81 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C10.11 20 8.36 19.43 6.92 18.46L6.5 18.2L4.42 18.8L5.02 16.72L4.76 16.3C3.79 14.86 3.22 13.11 3.22 11.22C3.22 7.15 6.93 3.44 12 3.44C16.85 3.44 20.56 7.15 20.56 11.22C20.56 16.07 16.85 20 12 20Z" fill="white"/>
            </svg>
        </div>
        
        <h1>添加微信</h1>
        <p class="subtitle">扫码或复制微信号添加好友</p>
        
        <div class="wechat-id-box">
            <div class="wechat-id" id="wechatId">your-wechat-id</div>
        </div>
        
        <button class="copy-btn" onclick="copyWechatId()">
            <span id="btnText">复制微信号</span>
        </button>
        
        <p class="tip">点击上方按钮复制微信号，然后在微信中添加</p>
    </div>
    
    <script>
        // 请将 your-wechat-id 替换为你的实际微信号
        document.getElementById('wechatId').textContent = 'your-wechat-id';
        
        function copyWechatId() {
            const wechatId = document.getElementById('wechatId').textContent;
            const btnText = document.getElementById('btnText');
            const copyBtn = document.querySelector('.copy-btn');
            
            // 复制到剪贴板
            if (navigator.clipboard) {
                navigator.clipboard.writeText(wechatId).then(() => {
                    // 成功复制
                    btnText.textContent = '已复制！';
                    copyBtn.classList.add('copied');
                    
                    // 2秒后恢复原状
                    setTimeout(() => {
                        btnText.textContent = '复制微信号';
                        copyBtn.classList.remove('copied');
                    }, 2000);
                }).catch(() => {
                    fallbackCopy(wechatId);
                });
            } else {
                fallbackCopy(wechatId);
            }
        }
        
        function fallbackCopy(text) {
            const textArea = document.createElement("textarea");
            textArea.value = text;
            textArea.style.position = "fixed";
            textArea.style.left = "-999999px";
            document.body.appendChild(textArea);
            textArea.focus();
            textArea.select();
            
            try {
                document.execCommand('copy');
                document.getElementById('btnText').textContent = '已复制！';
                document.querySelector('.copy-btn').classList.add('copied');
                
                setTimeout(() => {
                    document.getElementById('btnText').textContent = '复制微信号';
                    document.querySelector('.copy-btn').classList.remove('copied');
                }, 2000);
            } catch (err) {
                alert('复制失败，请手动复制');
            }
            
            document.body.removeChild(textArea);
        }
    </script>
</body>
</html>